const { Controller } = require("egg");

class DeptController extends Controller {
    async create() {}

    async index() {
        const res = await this.service.dept.readList();
        this.ctx.body = {
            code: 200,
            data: res,
            message: "获取列表成功",
        };
    }
}

module.exports = DeptController;
